module.exports = { 

    configureWebpack: {
        // provide the app's title in webpack's name field, so that
        // it can be accessed in index.html to inject the correct title.
        externals: {
          AMap: "AMap", 
          AMapUI: "AMapUI"
        }
      },
    devServer: {

        proxy: {
          '/api': {
            //这里后台的地址模拟的;应该填写你们真实的后台接口
            target: 'http://127.0.0.1:8000/',
            ws: true,
            changOrigin: true,//允许跨域
            //请求的时候使用这个api就可以
            pathRewrite: { '^/api': '' }
          }
        }
      }
    
}